// 一些初始化工作
// Set html "lang" attribute based on URL
const locale = location.hash.match(/#\/(de-de|es|ru-ru|en-us|zh-cn)\//)
const lang =
  locale && locale.length > 1
    ? locale[1]
    : false || navigator.language.toLowerCase()

document.documentElement.setAttribute('lang', lang)
